Quick Fields contains a powerful Script Editor that enables you to write VB.NET and C# scripts. Follow the steps below to create a new script.
Tip: It is important to consider the impact a script could have on the performance of your session. For events associated with documents, the script will run once for each document. For events associated with pages, the script will run once for each page. For example, if you called the e.API.ShowMessageBox method inside the OnPageCreated method, and then scanned a 200 page document, the message box would appear 200 times.
Note: For the most part, Quick Fields does not interact with a Laserfiche repository until documents are stored. As a result, if your script needs to connect to your Laserfiche repository, you must provide the connection yourself using standard Laserfiche Toolkit code. For more information on Laserfiche Server Objects, see the Laserfiche Toolkit documentation.
To create a script
Tip: You can also control this setting by selecting Tools, Options, Current Session, General and configuring Scripting Options. The language setting is tied to the session that is currently open, not to Quick Fields in general.
Note: When you create a script, it is assigned to, and only available within, the active session. For example, the scripts you create in Session 1 will not available to Session 2.
Tip: If your script requires additional imports, you can include them here. You must also add a reference to any namespaces that are not in your References folder. To do so, right click on the References folder in the Project Explorer pane and select Add Reference. In the Add References dialog box, choose a reference from the list or click Browse to locate a file.
For further help or feedback, please see the Laserfiche Support Site. | © 2009 Laserfiche. All Rights Reserved. |